import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);

Vue.component('dynamic-heading', {
  render(createElement) {
    return createElement(`h${this.level}`, this.$slots.default);
  },
  props: {
    level: {
      type: Number,
      required: true,
      default: 1
    }
  }
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
